package com.hut.oa.model.dao.discuss;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.hut.oa.model.bean.DiscussVote;
import com.hut.oa.model.bean.DiscussVoteSelectContent;

public interface DiscussVoteSelectContentDao extends CrudRepository<DiscussVoteSelectContent, Long>{
	//根据投票贴查出投票选项内容
	@Query("from DiscussVoteSelectContent dvc where dvc.vote=:vote")
	List<DiscussVoteSelectContent> voteAll(@Param("vote") DiscussVote vote);
	
	//查出此用户所选选项
	
	
}
